package com.andengine.editor;

/**
 * @author sad
 */
public class FileUtils {

    public static boolean checkFileInDirectory(String dir, String filePath) {
        dir = dir.toLowerCase();
        filePath = filePath.toLowerCase();
        dir = dir.replace('\\', '/');
        filePath = filePath.replace('\\', '/');
        return filePath.startsWith(dir);
    }
}
